package com.zsrd.auth.domain.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
//import javax.validation.constraints.NotBlank;

/**
 * @author sjy
 */
@Data
public class LoginDto {
//    @NotBlank(message = "用户名不能为空")
    private String username;

//    @NotBlank(message = "密码不能为空")
    /**
     * 因为密码比较重要，故仅用于反序列化
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;


    //在线用户
    private String nickName;

    @ApiModelProperty("分页起始")
    private Integer pageNum;

    @ApiModelProperty("分页结束")
    private Integer pageSize;

}
